package cn.itcast.homework.po;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author 虎哥
 */
@Table(name = "tb_sku")
@Data
public class ItemPO {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;// 商品id
    //    @Column(name = "spu_id")
    private Long spuId;
    private String title;// 标题
    private String images;// 图片，多张图片以，隔开
    private Long sold;// 销量
    private Long stock;// 库存
    private Long price;// 价格，以分为单位
    private String indexes;
    private String ownSpec;// 规格
    private boolean saleable;// 上下架
    private Date createTime;
    private Date updateTime;
}
